Release 10.1A: OpenEdge Development:
Progress 4GL Reference
CREATE DATABASE statement
Creates a new OpenEdge database.
Syntax
new-databaseA CHARACTER expression that returns the full or relative pathname of the database you want to create. If the database already exists, a new database is not created unless you specify REPLACE.
FROMold-databaseA CHARACTER expression that returns the name of the database whose schema and data you want to copy to the new database. The value of
old-databasecan be a full or relative pathname or one of the special strings "EMPTY", "DEMO", or "SPORTS". If you omit this option, Progress creates an empty database.NEW-INSTANCEIf specified, Progress assigns the new database a new globally unique identifier (GUID) value as the database identifier. If not specified, Progress assigns the new database the same GUID database identifier as the old database.
When you create a new database by copying an existing 10.1A database provided by Progress (such as the empty database, demo database, or Sports database), Progress always assigns the new database a new GUID database identifier.
Note: Use this option only when creating a new 10.1A database by copying an existing 10.1A database.REPLACEIf specified and a database already exists with the name specified by
new-database, the existing database is deleted and replaced with the new database. If not specified and a database already exists with the name specified bynew-database, an error occurs.NO-ERRORIf specified and the CREATE DATABASE statement fails, the error condition is not raised.
ExampleThis procedure prompts for the name of a database to connect. If the database does not exist, the procedure creates it.
Notes
See also
ALIAS function, CONNECT statement, CONNECTED function, CREATE ALIAS statement, DATASERVERS function, DBCODEPAGE function, DBCOLLATION function, DBRESTRICTIONS function, DBTYPE function, DELETE ALIAS statement, DISCONNECT statement, ERROR-STATUS system handle, FRAME-DB function, LDBNAME function, NUM-DBS function, PDBNAME function, SDBNAME function
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |